<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateChangeSeriesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('change_series', function (Blueprint $table) {
            $table->id();
            $table->integer('order_id')->default(0)->comment('订单id');
            $table->integer('manager_id')->default(0)->comment('管理员id');
            $table->integer('old')->default(0)->comment('更换前车系id');
            $table->integer('new')->default(0)->comment('更换后车系id');
            $table->string('order_sn')->default('')->comment('订单号');
            $table->string('manager')->default('')->comment('更换人');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('change_series');
    }
}
